﻿<UserControl x:Class="ucAccountPolicies"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="auto">
    <Grid>
        <Border Name="borderHeader1" 
                Grid.Column="1" 
                BorderBrush="Gray" 
                BorderThickness="0,1,1,1" 
                CornerRadius="6,6,6,6">


            <GroupBox Header="Password">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <GroupBox Header="Length" Margin="5,10,5,10"  Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Label Grid.Column="0" Height="auto" Name="Label1" Width="auto" VerticalAlignment="Center" >Minimum password length</Label>
                            <TextBox Grid.Column="1" Name="textboxPasswordLength" Width="30" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Expiration" Margin="5,10,5,10"  Grid.Row="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto"></RowDefinition>
                                <RowDefinition Height="auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <RadioButton Margin="1,2,1,2" Name="PasswordExpirationNo" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" GroupName="PasswordExpiration"></RadioButton>
                            <RadioButton Margin="1,2,1,2" Name="PasswordExpirationYes" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" GroupName="PasswordExpiration"></RadioButton>
                            <Label Grid.Row="0" Grid.Column="1" Height="auto" Name="Label" Width="auto" VerticalAlignment="Center" >Password never expires</Label>
                            <Label Grid.Row="1" Grid.Column="1" Height="auto" Name="Label1z" Width="auto" VerticalAlignment="Center" >Password expires every</Label>
                            <TextBox Grid.Row="1" Grid.Column="2" Height="auto" Width="30" Name="textboxExpirationDays" ></TextBox>
                            <Label Grid.Row="1" Grid.Column="3" Height="auto" Name="Label3" Width="auto" VerticalAlignment="Center" >days</Label>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Format" Margin="5,10,5,10"  Grid.Row="2">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto"></RowDefinition>
                                <RowDefinition Height="auto"></RowDefinition>
                                <RowDefinition Height="auto"></RowDefinition>
                                <RowDefinition Height="auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <CheckBox Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Name="cbPasswordFormatAlphaNumeric" Margin="1,2,1,2"></CheckBox>
                            <CheckBox Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Name="cbPasswordFormatSpecialChar" Margin="1,2,1,2"></CheckBox>
                            <CheckBox Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Name="cbPasswordFormatUpperCase" Margin="1,2,1,2"></CheckBox>
                            <CheckBox Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Name="cbPasswordFormatDifferentFromId" Margin="1,2,1,2"></CheckBox>
                            <Label Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" >Require alpha numeric password</Label>
                            <Label Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" >Require at least one special character</Label>
                            <Label Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" >Require upper and lower case combination</Label>
                            <Label Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" >Password different from ID</Label>
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Lock Account" Margin="5,10,5,10"  Grid.Row="3">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                                <ColumnDefinition Width="auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto"></RowDefinition>
                                <RowDefinition Height="auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <RadioButton Grid.Row="0" Grid.Column="0" Name="rbLockAccountNo" Margin="1,2,1,2" VerticalAlignment="Center" HorizontalAlignment="Center" GroupName="LockAccount"></RadioButton>
                            <RadioButton Grid.Row="1" Grid.Column="0" Name="rbLockAccountYes" Margin="1,2,1,2" VerticalAlignment="Center" HorizontalAlignment="Center" GroupName="LockAccount"></RadioButton>
                            <Label Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" >No account lock</Label>
                            <Label Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" >Lock account after</Label>
                            <Label Grid.Row="1" Grid.Column="3" VerticalAlignment="Center" >unsuccessful attempts</Label>
                            <TextBox Grid.Row="1" Grid.Column="2" Height="auto" Width="30" Name="textboxLockAccount" ></TextBox>
                        </Grid>
                    </GroupBox>

                    <StackPanel Grid.Row="4" Orientation="Horizontal">
                        <Button Name="buttonSave" Width="100" HorizontalAlignment="Left" Margin="1,2,1,2">Save
                        </Button>
                        <Button Name="buttonCancel" Width="100" HorizontalAlignment="Left" Margin="1,2,1,2">Cancel
                        </Button>
                    </StackPanel>

                </Grid>
            </GroupBox>
        </Border>
    </Grid>
</UserControl>
